package com.xmtlxx.oms.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.xmtlxx.common.annotation.ExcelDictFormat;
import com.xmtlxx.common.convert.ExcelDictConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;



/**
 * 规则视图对象 t_rule
 *
 * @author xmtlxx
 * @date 2022-08-12
 */
@Data
@ApiModel("规则视图对象")
@ExcelIgnoreUnannotated
public class RuleVo {

    private static final long serialVersionUID = 1L;

    /**
     * 规则ID
     */
    @ExcelProperty(value = "规则ID")
    @ApiModelProperty("规则ID")
    private String id;

    /**
     * 规则名称
     */
    @ExcelProperty(value = "规则名称")
    @ApiModelProperty("规则名称")
    private String name;

    /**
     * 规则类型
     */
    @ExcelProperty(value = "规则类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "rule_type")
    @ApiModelProperty("规则类型")
    private String type;

    /**
     * 规则描述
     */
    @ExcelProperty(value = "规则描述")
    @ApiModelProperty("规则描述")
    private String memo;

    /**
     * 规则内容（JSON）
     */
    @ExcelProperty(value = "规则内容", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "J=SON")
    @ApiModelProperty("规则内容（JSON）")
    private String content;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态")
    @ApiModelProperty("状态")
    private String status;

    @ExcelProperty(value = "删除标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_del_flag")
    private String delFlag;
}
